package com.sam.properties;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class JobService {

    @Autowired
    private PropertiesConfig jobConfig;

    public void getLowLevelJobs() {
        List list = jobConfig.getLowLevelJobs();
        log.warn(JSON.toJSONString(list));
    }

    public void getDependentJobByName(String name){
        List<String> list = jobConfig.getJobs().get(name);
        log.warn(JSON.toJSONString(list));
    }
}
